<template>
  <div>
    <el-button @click="next">下一步</el-button>
    <div class="content">
      <el-card class="box-card">
        <template #header>
          <div class="card-header">
            <span>{{player.name}}</span>
            <el-button class="button" text>背包</el-button>
          </div>
        </template>
        <div>
        血量：{{player.hp}}
        </div>
        <div>
        攻击：{{player.attack}}
        </div>
        <div>
        防御：{{player.defend}}
        </div>
      </el-card>
    </div>
  </div>
</template>
  
<script>
import LAY_EXCEL from 'lay-excel';
export default {
  data() {
    return {
      player: {
        name: "zxc",
        hp:10,
        attack: 2,
        defend: 1
      },
      tableData: [{
      }]
    }
  },
  methods: {
    next() { this.player.attack += 1 }
  }
}
</script>
  
<style>
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.text {
  font-size: 14px;
}

.item {
  margin-bottom: 18px;
}

.box-card {
  width: 200px;
}
</style>